import 'dart:convert';

import 'package:mziot/generated/json/base/json_field.dart';
import 'package:mziot/generated/json/group_info_entity.g.dart';

@JsonSerializable()
class GroupInfoEntity {
  int? id;
  String? groupName;
  String? groupImg;
  List<int>? sceneIds;
  List<int>? deviceIds;
  int? currentSceneId;
  String? sceneName;
  String? deviceName;
  bool? sceneLockStatus;
  int? lightRate;
  bool? isClose;

  GroupInfoEntity();

  factory GroupInfoEntity.fromJson(Map<String, dynamic> json) => $GroupInfoEntityFromJson(json);

  Map<String, dynamic> toJson() => $GroupInfoEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
